import layoutHeaderAside from '@/layout/header-aside'

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const meta = { auth: true }

export default {
  path: '/functionlist',
  name: 'functionlist',
  meta,
  redirect: { name: 'functionlist-index' },
  component: layoutHeaderAside,
  children: [
    { path: '/functionlist/index', name: 'functionlist-index', component: _import('functionlist/index'), meta: { ...meta, title: '功能列表' } },
    { path: 'skv11_management/collect_data_analysis', name: 'skv11-management-collect-data-analysis', component: _import('functionlist/skv11_manage/collect_data_analysis.vue'), meta: { ...meta, title: '企业商品流向查询' } },
    { path: 'skv11_management/collect_data_analysis_upload', name: 'skv11-management-collect-data-analysis-upload', component: _import('functionlist/skv11_manage/collect_data_analysis_upload.vue'), meta: { ...meta, title: '企业流向上传管理' } }
  ]
}
